package com.echartsdata.Entityimp;

import com.alibaba.fastjson2.JSONObject;
import com.echartsdata.Mapper.BaseInfoMapper;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * Author: 凉笙℡墨染
 * CreateTime: 2024-09-26
 * 信息来源
 */

@Component
public class BaseInfoMapperimp {
    @Resource
    private BaseInfoMapper baseInfoMapper;
    public String get_baseInfo(){
        System.out.println("看看信息来源的数据返回的什么数据"+baseInfoMapper.get_list());
        //json数据处理
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("data", baseInfoMapper.get_list());
        System.out.println("看看信息来源转换后的json数据是"+jsonObject.toString());
        return jsonObject.toJSONString();
    }
}
